//
//  RQActionSheet.h
//  RQActionSheet
//
//  Created by RocQ on 2017/6/5.
//  Copyright © 2017年 fengchao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RQActionSheetConfig.h"

@class RQActionSheet;
@protocol RQActionSheetDelegate <NSObject>

@optional
- (void)actionSheet:(RQActionSheet *)actionSheet selectedIndex:(NSInteger)selectedIndex;

@end

@interface RQActionSheet : UIView

@property (nonatomic, weak) id<RQActionSheetDelegate> delegate; ///< 代理对象
@property (nonatomic, assign) RQContentAlignment contentAlignment; ///< 默认是FSContentAlignmentCenter.
@property (nonatomic, assign) BOOL isMultiple;          ///< 默认是NO 是否支持多选
@property (nonatomic, assign) BOOL hideOnTouchOutside; ///< 是否开启点击半透明层隐藏弹窗, 默认为YES.

- (instancetype)initWithItems:(NSArray<NSString *> *)items;
- (void)showWithMultipleSelectedCompletion:(RQActionSheetMultipleHandler)multiplesDelectedHandler;

- (void)showWithSelectedCompletion:(RQActionSheetHandler)selectedHandler;

@end
